package com.yyn.client2.controller;
import com.yyn.client2.dao.ClientDao;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/chatClient")
public class clientController {
    @Autowired
    private ClientDao clientDao;
    @ApiOperation("小明")
    @GetMapping("connect")
    public void connect() throws Exception {
        clientDao.client("小明");
    }
    @ApiOperation("小红")
    @GetMapping("connect2")
    public void connect2() throws Exception {
        clientDao.client("小红");
    }

}
